package com.stef.saas.ssm.feign;

import com.stef.saas.common.base.dto.BaseResult;
import com.stef.saas.ssm.feign.entity.User;
import com.stef.saas.ssm.feign.fallback.UmsClientFallBack;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(name = "mississipi-saas-ssm", fallback = UmsClientFallBack.class)
public interface UmsClient {


    @ApiOperation(value = "通过id查询用户信息", notes = "通过id查询用户信息")
    @GetMapping("/ssm/user/{id}")
    BaseResult<User> getById(@PathVariable("id") Long id);
}
